package com.qfedu.scode.test;

import com.qfedu.scode.util.EncryptUtil;

/**
 * @program: StartCoding
 * @description:
 * @author: Feri(邢朋辉)
 * @create: 2021-01-06 11:54
 */
public class Pass_Main {
    public static void main(String[] args) {
        String key= EncryptUtil.createAESKey();
        System.out.println(key);
        String pass="123456";
        String pass1=EncryptUtil.aesenc(key,pass);
        System.out.println("加密："+pass1);
        System.out.println("解密："+EncryptUtil.aesdec(key,pass1));
    }
}
